home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
smailsrc.zip
/
SMAIL.ZIP
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1990-04-04
|
3KB
|
129 lines
# Makefile for smail (not a installation makefile)
#
# @(#)Makefile 2.5 (smail-PC) 9/15/87
#
# Although some UNIXisms have been left in this makefile, it is predominately
# intended for MS-DOS sites using Turbo C. This file and the accompanying
# linker response file tlink.rsp probably require many modifications before
# they will work with a different compiler. (Did I hear someone say "MS-C"?)
# Sorry about that. ;-)
#
#
# System V Release 2.0 sites can use -lmalloc for a faster malloc
#
# LIBS = -lmalloc
#
# all: smail svbinmail lcasep pathproc mkfnames nptx
#
#
# MS-DOS sites need to use a password library, such as spwd.lib
#
LIBS = ..\passwd\spwd.lib
#
# Turbo C Flags: Small memory model, Optimize, Debugging
#
CFLAGS = -ms -O
OBJECTS = main.obj map.obj resolve.obj misc.obj alias.obj pw.obj\
headers.obj getpath.obj str.obj getopt.obj deliver.obj\
msdos.obj popen.obj config.obj
.c.obj:
tcc $(CFLAGS) -c $*.c
#
# Generalized make targets
#
all: smail.exe rmail.exe lmail.exe uux.exe lcasep.exe\
uuxdummy.exe nptx.exe
install: all
@echo read doc/Install
clean:
-rm /f *.obj *.map
clobber: clean
-rm /f smail.exe rmail.exe lmail.exe uux.exe lcasep.exe\
nptx.exe uuxdummy.exe
#
# Executable targets
#
smail.exe: $(OBJECTS)
tlink @tlink.rsp
rmail.exe: smail.exe
@copy smail.exe rmail.exe
lmail.exe: lmail.obj config.obj
tcc -elmail $(CFLAGS) lmail.obj config.obj $(LIBS)
uux.exe: uux.obj config.obj
tcc -euux $(CFLAGS) uux.obj config.obj $(LIBS)
uuxdummy.exe: uuxdummy.obj
tcc -euuxdummy $(CFLAGS) uuxdummy.obj $(LIBS)
lcasep.exe: lcasep.obj getopt.obj
tcc -elcasep $(CFLAGS) lcasep.obj getopt.obj $(LIBS)
nptx.exe: nptx.obj pw.obj str.obj getopt.obj
tcc -enptx $(CFLAGS) nptx.obj pw.obj str.obj getopt.obj $(LIBS)
#
# Intermediate (.OBJ) targets
#
alias.obj: alias.c defs.h
config.obj: config.c config.h
deliver.obj: deliver.c defs.h
getopt.obj: getopt.c defs.h
getpath.obj: getpath.c defs.h
headers.obj: headers.c defs.h
lcasep.obj: lcasep.c
lmail.obj: lmail.c config.h
main.obj: main.c defs.h
map.obj: map.c defs.h
misc.obj: misc.c defs.h
msdos.obj: msdos.c defs.h config.h
nptx.obj: nptx.c
popen.obj: popen.c
pw.obj: pw.c defs.h
resolve.obj: resolve.c defs.h
str.obj: str.c defs.h
uux.obj: uux.c config.h
uuxdummy.obj: uuxdummy.c config.h
# The following shell scripts are meaningless under MS-DOS
#
# pathproc: pathproc.sh
# cp pathproc.sh pathproc
# chmod 755 pathproc
#
# mkfnames: mkfnames.sh
# cp mkfnames.sh mkfnames
# chmod 755 mkfnames